package com.meilai.project.controller.web.businessFlow.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author 张驰
 * @since 2022-09-15
 */
@Data
@TableName("v_business")
@ApiModel(value="VBusiness对象", description="VIEW")
public class VBusiness {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long customer_id;

    @ApiModelProperty(value = "客户名称")
    private String customer_name;

    @ApiModelProperty(value = "负责人ID")
    private Long customer_charge_id;

    @ApiModelProperty(value = "姓名")
    private String customer_charge;

    @ApiModelProperty(value = "维护人员ID")
    private Long customer_maintenance_id;

    @ApiModelProperty(value = "维护人姓名")
    private String customer_maintenance;

    private Long contract_id;

    @ApiModelProperty(value = "父合同ID")
    private Long contract_parent_id;

    @ApiModelProperty(value = "root合同ID")
    private Long contract_root_id;

    @ApiModelProperty(value = "合同编号")
    private String contract_num;

    @ApiModelProperty(value = "0:无状态，1：挂起, 2:作废")
    private Integer contract_mode;

    @ApiModelProperty(value = "流程当前状态（0：保存；2、退回；3、流程中；4、通过；5、删除）")
    private Integer contract_flow_status;

    @ApiModelProperty(value = "流程当前节点名称")
    private String contract_flow_status_name;

    @ApiModelProperty(value = "合同开始日期")
    private LocalDate contract_begin_date;

    @ApiModelProperty(value = "合同结束日期")
    private LocalDate contract_end_date;

    @ApiModelProperty(value = "优惠价格")
    private BigDecimal contract_discounted_price;

    private Long bill_sale_id;

    @ApiModelProperty(value = "1：普通类型 2：换画类型")
    private Integer bill_sale_type;

    @ApiModelProperty(value = "0:无状态，1：挂起, 2:作废")
    private Integer bill_sale_mode;

    @ApiModelProperty(value = "流程当前状态（0：保存；2、退回；3、流程中；4、通过；5、删除）")
    private Integer bill_sale_flow_status;

    @ApiModelProperty(value = "流程当前节点名称")
    private String bill_sale_flow_status_name;

    @ApiModelProperty(value = "本次执行金额")
    private BigDecimal bill_sale_execute_amount;

    @ApiModelProperty(value = "销售单包含的媒体类型")
    private String bill_sale_media_type_names;

    private Long daterange_id;

    @ApiModelProperty(value = "时间段-开始时间")
    private LocalDateTime start_at;

    @ApiModelProperty(value = "时间段-结束时间")
    private LocalDateTime end_at;

    private Long bill_market_id;

    @ApiModelProperty(value = "1：普通类型 2：换画类型")
    private Integer bill_market_type;

    @ApiModelProperty(value = "流程当前状态（0：保存；2、退回；3、流程中；4、通过；5、删除）")
    private Integer bill_market_flow_status;

    @ApiModelProperty(value = "流程当前节点名称")
    private String bill_market_flow_status_name;

    @ApiModelProperty(value = "是否生成外链")
    private Boolean bill_market_link_generated;

    @ApiModelProperty(value = "拍照要求已确认，0:未确认，1已确认")
    private Boolean bill_market_shoot_requirement_confirmed;

    private Boolean bill_market_designed;

    private Boolean bill_market_customer_confirmed;

    private Long bill_ad_make_id;

    @ApiModelProperty(value = "外单分类id，1正常，2换画")
    private Integer bill_ad_make_type;

    @ApiModelProperty(value = "流程当前状态（0：保存；2、退回；3、流程中；4、通过；5、删除）")
    private Integer bill_ad_make_flow_status;

    @ApiModelProperty(value = "流程当前节点名称")
    private String bill_ad_make_flow_status_name;

    private Integer bill_ad_make_dis_supplier;

    private Integer bill_ad_make_gen_link;

    private Integer bill_ad_make_supplier_confirm;

    @ApiModelProperty(value = "主键id")
    private Long work_order_id;

    @ApiModelProperty(value = "0:无状态，1：挂起, 2:作废")
    private Integer work_order_mode;

    @ApiModelProperty(value = "工单名称")
    private String work_order_name;

    @ApiModelProperty(value = "工单类型id，1：新安装，2:上刊，3:下刊，4:巡检，5:维修")
    private Integer work_order_type;

    private Integer work_order_exe_status;

    private Integer work_order_installed_to_check_num;

    private Integer work_order_installed_passed_num;

    private Integer work_order_total_num;


    public static final String CUSTOMER_ID = "customer_id";

    public static final String CUSTOMER_NAME = "customer_name";

    public static final String CUSTOMER_CHARGE_ID = "customer_charge_id";

    public static final String CUSTOMER_CHARGE = "customer_charge";

    public static final String CUSTOMER_MAINTENANCE_ID = "customer_maintenance_id";

    public static final String CUSTOMER_MAINTENANCE = "customer_maintenance";

    public static final String CONTRACT_ID = "contract_id";

    public static final String CONTRACT_PARENT_ID = "contract_parent_id";

    public static final String CONTRACT_ROOT_ID = "contract_root_id";

    public static final String CONTRACT_NUM = "contract_num";

    public static final String CONTRACT_MODE = "contract_mode";

    public static final String CONTRACT_FLOW_STATUS = "contract_flow_status";

    public static final String CONTRACT_FLOW_STATUS_NAME = "contract_flow_status_name";

    public static final String CONTRACT_BEGIN_DATE = "contract_begin_date";

    public static final String CONTRACT_END_DATE = "contract_end_date";

    public static final String CONTRACT_DISCOUNTED_PRICE = "contract_discounted_price";

    public static final String BILL_SALE_ID = "bill_sale_id";

    public static final String BILL_SALE_TYPE = "bill_sale_type";

    public static final String BILL_SALE_MODE = "bill_sale_mode";

    public static final String BILL_SALE_FLOW_STATUS = "bill_sale_flow_status";

    public static final String BILL_SALE_FLOW_STATUS_NAME = "bill_sale_flow_status_name";

    public static final String BILL_SALE_EXECUTE_AMOUNT = "bill_sale_execute_amount";

    public static final String DATERANGE_ID = "daterange_id";

    public static final String START_AT = "start_at";

    public static final String END_AT = "end_at";

    public static final String BILL_MARKET_ID = "bill_market_id";

    public static final String BILL_MARKET_TYPE = "bill_market_type";

    public static final String BILL_MARKET_FLOW_STATUS = "bill_market_flow_status";

    public static final String BILL_MARKET_FLOW_STATUS_NAME = "bill_market_flow_status_name";

    public static final String BILL_MARKET_LINK_GENERATED = "bill_market_link_generated";

    public static final String BILL_MARKET_SHOOT_REQUIREMENT_CONFIRMED = "bill_market_shoot_requirement_confirmed";

    public static final String BILL_MARKET_DESIGNED = "bill_market_designed";

    public static final String BILL_MARKET_CUSTOMER_CONFIRMED = "bill_market_customer_confirmed";

    public static final String BILL_AD_MAKE_ID = "bill_ad_make_id";

    public static final String BILL_AD_MAKE_TYPE = "bill_ad_make_type";

    public static final String BILL_AD_MAKE_FLOW_STATUS = "bill_ad_make_flow_status";

    public static final String BILL_AD_MAKE_FLOW_STATUS_NAME = "bill_ad_make_flow_status_name";

    public static final String BILL_AD_MAKE_DIS_SUPPLIER = "bill_ad_make_dis_supplier";

    public static final String BILL_AD_MAKE_GEN_LINK = "bill_ad_make_gen_link";

    public static final String BILL_AD_MAKE_SUPPLIER_CONFIRM = "bill_ad_make_supplier_confirm";

    public static final String WORK_ORDER_ID = "work_order_id";

    public static final String WORK_ORDER_MODE = "work_order_mode";

    public static final String WORK_ORDER_NAME = "work_order_name";

    public static final String WORK_ORDER_TYPE = "work_order_type";

    public static final String WORK_ORDER_EXE_STATUS = "work_order_exe_status";

    public static final String WORK_ORDER_INSTALLED_TO_CHECK_NUM = "work_order_installed_to_check_num";

    public static final String WORK_ORDER_INSTALLED_PASSED_NUM = "work_order_installed_passed_num";

    public static final String WORK_ORDER_TOTAL_NUM = "work_order_total_num";

}
